<?php

class Zend_View_Helper_AlertHelper extends Zend_View_Helper_Abstract 
{ 
    public function alertHelper($elemento)
    {
        $jquery = $this->view->jQuery();
        $jquery->enable(); // enable jQuery Core Library
 
        // get current jQuery handler based on noConflict settings
        $jqHandler = ZendX_JQuery_View_Helper_JQuery::getJQueryHandler();
 
        $function = '("' . $elemento . '").click(function() '
                  . '{ alert("noConflict Mode Save Helper!"); }'
                  . ');';
        $jquery->addOnload($jqHandler . $function);
        return '';
    }
}
